package com.wuba.rxjavademo.tzx.common;

import rx.Observable;

/**
 * Created by tanzhenxing
 * Date: 2016/6/24.
 * Description:
 */
public class Base implements Runnable{
    public static void print(String str,String prefix) {
        print(prefix + str);
    }
    public static void print(int num,String prefix) {
        print(prefix + num);
    }
    public static void print(long num,String prefix) {
        print(prefix + num);
    }
    public static void print(float num,String prefix) {
        print(prefix + num);
    }
    public static void print(String str) {
        System.out.println(str);
    }
    public static void print(int num) {
        System.out.println(num);
    }
    public static void print(long num) {
        System.out.println(num);
    }
    public static void print(float num) {
        System.out.println(num);
    }

    @Override
    public void run() {

    }

    public Observable<Integer> getObservable() {
        return Observable.from(items);
    }

    public Integer[] items = { 0, 1, 2, 3, 4};

    public static void print(Object o) {
        System.out.println(o.toString());
    }
}
